Skip to content

Comments

v0.0.4#4

Merged
roncodes merged 21 commits intomainfrom
dev-v0.0.4
Feb 24, 2026
Merged

v0.0.4#4
roncodes merged 21 commits intomainfrom
dev-v0.0.4

Conversation

@roncodes
Copy link
Member

No description provided.

Manus AI and others added 12 commits February 15, 2026 08:39
- Add 'flb register' command for creating Registry Developer Accounts
- Interactive prompts for username, email, password, and name
- Input validation for username format and password length
- Calls /~registry/v1/developer-account/register API endpoint
- Provides clear success/error messages
- Guides users to login after successful registration
…nt-registration

feat: Add Registry Developer Account Registration
This commit adds the install-fleetbase command functionality on top of
the dev-v0.0.4 branch which includes the register command.

Both commands now coexist:
- register: Register a new Registry Developer Account
- install-fleetbase: Install Fleetbase using Docker

The install command includes:
- Interactive prompts for host, environment, and directory
- Automatic APP_KEY generation
- Docker compose configuration
- Console environment file updates
- Deployment automation
…d-rebased

Feature/install fleetbase command rebased
The install-fleetbase command now automatically clones the Fleetbase
repository into the target directory if docker-compose.yml is not found.

This improves the user experience by eliminating the need to manually
clone the repository before running the install command.

Changes:
- Automatically detects if Fleetbase files are missing
- Clones repository using 'git clone' if needed
- Creates target directory if it doesn't exist
- Provides clear feedback during the cloning process
- Gracefully handles clone failures with helpful error messages
…d-rebased

Feature/install fleetbase command rebased
The register command now accepts a --host parameter to allow users
to register against self-hosted Fleetbase instances instead of only
the default api.fleetbase.io.

Usage:
  flb register --host myinstance.com
  flb register -h myinstance.com

Changes:
- Added --host/-h option to register command
- Defaults to api.fleetbase.io if not specified
- Dynamically builds registration API URL based on host
- Updates login suggestion to include --host if used during registration
The --host parameter now accepts full URLs with protocol (http:// or https://)
instead of hardcoding https. This allows users to register against local
development instances using http://localhost:8000.

Changes:
- Accept full URL: https://api.fleetbase.io or http://localhost:8000
- Auto-add https:// if protocol is missing (backward compatible)
- Updated option description to clarify full URL format

Examples:
  flb register --host https://api.fleetbase.io
  flb register --host http://localhost:8000
  flb register --host myinstance.com (defaults to https://)
Fixed TypeError when API returns error messages as strings instead of arrays.
The error handling now properly handles both formats:
- Array: ['error message 1', 'error message 2']
- String: 'error message'

This prevents crashes when displaying validation errors from the API.
Added debug logging to help diagnose network request issues:
- Log the constructed API endpoint URL
- Log the request data being sent
- Log detailed error information including error codes
- Log when no response is received from server

This will help identify if:
- The URL is being constructed correctly
- The request is actually being made
- There are network connectivity issues
- The server is responding
Manus AI added 4 commits February 23, 2026 20:42
Added new 'flb verify' command to verify developer account emails:
- Interactive prompts for email and verification code
- Supports --host parameter for self-hosted instances
- Clear success/error messages

Updated registration success message:
- Shows verification code was sent
- Displays exact verify command to run
- Guides user through next steps

This makes the verification flow much clearer for users.
…ages

Fixed two UX issues with the verify command:

1. Skip prompts when options are provided
   - If -e and -c are passed, don't prompt the user
   - Much better UX when copy/pasting from email

2. Better error handling and debugging
   - Show actual error messages instead of 'Unknown error'
   - Added debug logging for API endpoint, request data, and response
   - Helps diagnose verification issues

Now users can simply copy/paste the command from their email and it
works without any prompts.
Fixed error message display when API returns errors as an array:
- Check for errorData.errors array and join messages
- Now shows actual error instead of 'Unknown error'

Example: {"errors": ["Invalid or expired verification code."]}
Now displays: "Invalid or expired verification code." instead of "Unknown error"
Added new 'flb resend-verification' command to request a new verification
code if the original expires or is lost.

Features:
- Interactive prompt for email or use -e flag
- Supports --host parameter for self-hosted instances
- Clear instructions on what to do after resending
- Proper error handling for all response formats

Usage:
  flb resend-verification -e email@example.com
  flb resend-verification -e email@example.com --host http://localhost:8000

This solves the problem of users being stuck if their verification code
expires (1 hour expiration).
@roncodes roncodes merged commit c5281c5 into main Feb 24, 2026
6 checks passed
@roncodes roncodes deleted the dev-v0.0.4 branch February 24, 2026 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant